<?php
/**
 * @name ： articletag.php
 * @msg ：文章标签
 * @date ： 2015-01-15
 * @author : yuebin
 *
 */
namespace haibao\cms\model\data;

Class ArticleTag extends Base{
	/**
	 * 是否为主标签0否1是
	 */
	const PRIMAIY_NOT = 0;
	const PRIMAIY_IS = 1;
	/**
	 * 媒体报道TagId
	 */
	const REPORT_TAG = 9171;
	/**
	 * 造型日历TagId
	 */
	const CALENDAR_TAG = 8411;
	/**
	 * 文章ID
	 */
	public $ArticleId;
	
	/**
	 * 标签Id
	 */
	public $TagId;
	
	/**
	 * 是否为主标签0否1是
	 */
	public $IsPrimaiy;
	
	/**
	 * 标签顶级ID
	 */
	public $ParentId;

	/**
	 * 标签层次结构
	 */
	public $TagTree;
	
	/**
	 * 标签名
	 */
	public $TagName;
	/**
	 * 文章
	 */
	public $Article;
	public $ArticleRel = array();
	
	public $Tag;
	/**
	 * 美剧标签实体
	 */
	public $AmericanTag;
	
	public $TagUrl;
	
	public function __construct(){
		parent::__construct();
		
		$this->intField('ArticleId', 'ArticleId',true);
		$this->intField('TagId', 'TagId',true);
		$this->intField('IsPrimaiy', 'IsPrimaiy');
		$this->intField('ParentId', 'ParentId');
		$this->stringField('TagTree', 'TagTree');

		$this->setTableName('ArticleTag');
	}
}
